const {baseService2} =require('../../baseService2')
const model =require('../../../dao/model/model')


/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class kemuServiceError extends Error {
    constructor(error,message='kemuServiceError'){
        super()
        this.error = error
        this.message=message
    }
}


class kemuService extends baseService2{

    static ins = new kemuService()

    constructor(){
        super(model.modelkemu,kemuServiceError)
    }


    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new kemuService()
        }
    }
}







module.exports={kemuService}
